package com.gopay.common.domain.riskcontrol;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * The persistent class for the RC_RISK_TYPE database table.
 * 
 */
@Entity
@Table(name = "RC_RISK_TYPE")
public class RcRiskType implements Serializable {
    private static final long serialVersionUID = 1L;

    private long id;
    private String code;
    private String createdOperId;
    private Date createdTs;
    private String description;
    private String name;
    private BigDecimal version;
    private String lastUptOperId;
    private Date lastUptTs;

    public RcRiskType() {
    }

    @Id
    @SequenceGenerator(name = "RC_RISKTYPE_SEQ_GENERATOR", sequenceName = "RC_RISKTYPE_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RC_RISKTYPE_SEQ_GENERATOR")
    public long getId() {
        return id;
    }

    @Column(name = "CODE")
    public String getCode() {
        return code;
    }

    @Column(name = "CREATED_OPER_ID")
    public String getCreatedOperId() {
        return createdOperId;
    }

    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return createdTs;
    }

    @Column(name = "DESCRIPTION")
    public String getDescription() {
        return description;
    }

    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    @Column(name = "VERSION")
    public BigDecimal getVersion() {
        return version;
    }

    @Column(name = "LAST_UPT_OPER_ID")
    public String getLastUptOperId() {
        return lastUptOperId;
    }

    @Column(name = "LAST_UPT_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUptTs() {
        return lastUptTs;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setCreatedOperId(String createdOperId) {
        this.createdOperId = createdOperId;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setVersion(BigDecimal version) {
        this.version = version;
    }

    public void setLastUptOperId(String lastUptOperId) {
        this.lastUptOperId = lastUptOperId;
    }

    public void setLastUptTs(Date lastUptTs) {
        this.lastUptTs = lastUptTs;
    }
    
    

}